a = open('1.txt',mode='r',encoding='utf-8')
# print(a.readline())
# print(a.read())
# print(a.read(2))
print(a.readlines())

a.close()

# 写操作
b = open('2.txt',mode='w',encoding='utf-8')
for i in range(10):
    b.write(str(i) + '\n')

b.close()

with open('3.txt',mode='w',encoding='utf-8') as f:
    f.write("ksjskdfj")
